<?php

class Default_Form_Changepass extends Zend_Form
{

    public function init()
    {
        $old_pass = new Zend_Form_Element_Password('oldpass');
        $old_pass->setLabel("Mật khẩu hiện tại:")
                ->setRequired(true)
                ->addFilter("StringTrim")
                ->removeDecorator("HtmlTag");
        $newpass = new Zend_Form_Element_Password("newpass");
        $newpass->setLabel("Mật khẩu mới: ")
                ->setRequired(true)
                ->addFilter("StringTrim")
                ->removeDecorator("HtmlTag");
        
        $renewpass = new Zend_Form_Element_Password("renewpass");
        $renewpass->setLabel("Xác nhận mật khẩu mới: ")
                    ->setRequired(true)
                    ->addFilter("StringTrim")
                    ->removeDecorator("HtmlTag");
        
        $submit = new Zend_Form_Element_Submit("change");
        $submit->setLabel("Đổi mật khẩu")
                ->removeDecorator("DtDdWrapper");
        
        $this->addElements(array($old_pass, $newpass, $renewpass, $submit));
    }


}

